package homework26;

public class Cat extends Animal{
    public Cat(String name) {
        super(name);
    }

    @Override
    public String toString() {
        return "Cat{name='" + name + "'}";
    }

    public void catchMouse() {
        System.out.println(name + "正在抓老鼠");
    }
}
